home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1993 July / InfoMagic USENET CD-ROM July 1993.ISO / answers / motif-faq / part1 next >
Encoding:
Text File  |  1993-06-30  |  38.2 KB  |  931 lines

  1. Newsgroups: comp.windows.x.motif,news.answers,comp.answers
  2. Path: senator-bedfellow.mit.edu!enterpoop.mit.edu!gatech!usenet.ufl.edu!usenet.cis.ufl.edu!caen!batcomputer!munnari.oz.au!newshost.anu.edu.au!csc.canberra.edu.au!news
  3. From: jan@ise.canberra.edu.au (Jan Newmarch)
  4. Subject: Motif FAQ (Part 1 of 5)
  5. Message-ID: <1993Jul1.011053.27859@csc.canberra.edu.au>
  6. Followup-To: comp.windows.x.motif
  7. Summary: This posting contains a list of Frequently Asked Questions and their answers about Motif.
  8. Keywords: FAQ question answer
  9. Sender: news@csc.canberra.edu.au
  10. Reply-To: jan@ise.canberra.edu.au (Jan Newmarch)
  11. Organization: University of Canberra
  12. Date: Thu, 1 Jul 93 01:10:53 GMT
  13. Approved: news-answers-request@MIT.Edu
  14. Expires: +1 months
  15. Lines: 913
  16. Xref: senator-bedfellow.mit.edu comp.windows.x.motif:18406 news.answers:9855 comp.answers:1160
  17.  
  18. Archive-name: motif-faq/part1
  19. Last-modified: Wed July 1 1993
  20. Version: 3.6
  21.  
  22.  
  23. Motif FAQ
  24.  
  25. [Last changed: 1 July 93]
  26.  
  27. This article contains the answers to some Frequently Asked Questions (FAQ) 
  28. often seen in comp.windows.x.motif. It is posted to help reduce volume in 
  29. this newsgroup and to provide hard-to-find information of general interest.
  30.  
  31.         Please redistribute this article!
  32.  
  33. This FAQ was maintained by Jan Newmarch (jan@ise.canberra.edu.au). From
  34. next month (Aug 93) it will be maintained by Brian Dealy
  35. (dealy@kong.gsfc.nasa.gov)  Send updates and corrections
  36. to him at that mail address.  It would help if
  37. the subject line contained the phrase "FAQ".
  38.  
  39. This article includes answers to the following questions. Ones marked with
  40. a + indicate questions new to this issue; those with changes of content since
  41. the last issue are marked by *:
  42.  
  43.  0)  TOPIC: WHAT ARE OTHER RELEVANT NEWSGROUPS?
  44.  1) TOPIC: FTP ARCHIVES
  45.  2)*  Is the FAQ list available for FTP anywhere?
  46.  3)  Is this newsgroup accessible via email?
  47.  4) Is this newsgroup archived?
  48.  5) Is the mail list motif-talk archived?
  49.  6) TOPIC: OSF AND MOTIF
  50.  7)  What versions of Motif are there?
  51.  8)*  Where can I get Motif?
  52.  9) Is there a list of Motif bugs?
  53. 10) Where can I get public domain Motif source?
  54. 11)  Are the Motif examples publically available?
  55. 12)  Has anyone done a public domain Motif lookalike?
  56. 13) Does anyone from OSF pay attention to our questions/suggestions?
  57. 14) Does OSF have an application compliance validation service?
  58. 15) What is the motif-talk mailing list?
  59. 16) What MIT patches do I use, and when do I use fix-osf?
  60. 17)* How does Motif work with X11R5?
  61. 18)  How can I find which version of Motif I have?
  62. 19) TOPIC: LITERATURE
  63. 20)  What books should I read or do I need to program using Motif?
  64. 21) TOPIC: MWM
  65. 22) What is the difference between Motif and mwm?
  66. 23) Does anyone have an alternative set  of  3-D  defaults  for  a  monochrome
  67. screen?
  68. 24)  How can I modify the Motif window manager decorations?
  69. 25)  How can I turn off the Motif window manager  functions  from  the  system
  70. menu?
  71. 26)  How can tell I if the user has selected the "Close" item  on  the  system
  72. menu attached to the top-level shell?
  73. 27)  Is there an mwm virtual desktop manager?
  74. 28)  Why does mwm 1.2 crash on startup?
  75. 29) TOPIC: MOTIF GENERATORS
  76. 30)*  What prototyping tools are there to generate Motif code?
  77. 31) TOPIC: TEXT WIDGET
  78. 32) Why does  pressing  <return> in a text widget do nothing?
  79. 33) When I add text to a scrolling text widget how can I get the new  text  to
  80. show?
  81. 34)  Does the text widget support 16 bit character fonts?
  82. 35) How can I stop the text widget from echoing characters typed?
  83. 36)  How can I replace characters typed with say a `*'?
  84. 37) How can I best add a large piece of text to a scrolled text widget?
  85. 38) How can I highlight text in the Text widget?
  86. 39)  How can I select all of the text in a widget programmatically?
  87. 40) How can I change colours of text in the Text widget?
  88. 41) How can I change the font of text in the Text widget?
  89. 42) Is there an emacs binding for the text widget?
  90. 43) How can I use a file as the text source for a Text widget?
  91. 44) How can put Text in overstrike mode instead of insert?
  92. 45) How can I make the Delete key do a backspace?
  93. 46) TOPIC: LIST WIDGET
  94. 47) How do I best put a new set of items into a list?
  95. 48)  Can I have strings with different fonts in a list?
  96. 49) Can I get a bitmap to show in a list item like I can in a Label?
  97. 50) Can I have items with different colours in a list?
  98. 51) Can I grey out an item in a list?
  99. 52)  Can I have multi-line items in a list?
  100. 53)+How can I tell the position of selected items in a list?
  101. 54) TOPIC: FILE SELECTION BOX WIDGET
  102. 55) What is libPW.a and do I need it?
  103. 56) What are these compile errors: Undefined symbol _regcmp and _regex?
  104. 57) What's wrong with the Motif 1.0 File Selection Box?
  105. 58) TOPIC: FORM WIDGET
  106. 59) Why don't labels in a Form resize when the label is changed?
  107. 60) How can I center a widget in a form?
  108. 61) How do I line up two columns of widgets of different types?
  109. 62) TOPIC: PUSHBUTTON WIDGET
  110. 63) Why can't I use accelerators on buttons not in a menu?
  111. 64) TOPIC: LABEL WIDGET
  112. 65) How can I align the text in a label (button, etc) widget?
  113. 66) Why doesn't label alignment work in a RowColumn?
  114. 67)  How can I set a multiline label?
  115. 68)  How can I have a vertical label?
  116. 69)  How can I have a Pixmap in a Label?
  117. 70) TOPIC: DRAWING AREA WIDGET
  118. 71) How can I send an expose event to a Drawing Area widget?
  119. 72) How can I know when a DrawingArea has been resized?
  120. 73) TOPIC: MENUS
  121. 74) What can I put inside a menu bar?
  122. 75) Can I have a cascade button without a submenu in a pulldown menu?
  123. 76) Should I have a cascade button without a submenu in a pulldown menu?
  124. 77)  What is the best way to create popup menus?
  125. 78)  How do popup menus work?
  126. 79)  Should I use translation tables or actions for popup menus?
  127. 80)  What are the known bugs in popup menus?
  128. 81)  Can I have multiple popup menus on the same widget?
  129. 82) TOPIC: INPUT FOCUS
  130. 83) How can I direct the keyboard input to a particular widget?
  131. 84)  How can I have a modal dialog which has to be answered before the  appli-
  132. cation can continue?
  133. 85) TOPIC: MEMORY AND SPEED
  134. 86)  Why does my application grow in size?
  135. 87) Why does my application take a long time to start up?
  136. 88) My application is running too slowly. How can I speed it up?
  137. 89)  Why is my application so huge?
  138. 90) TOPIC: XMSTRING
  139. 91) How can I get the Ascii text out of an XmString?
  140. 92) When can XmStrings used as resources be freed?
  141. 93) Why doesn't XmStringGetNextSegment() work properly?
  142. 94)+ Why does using XmStringDraw cause a Bad Font error?
  143. 95) TOPIC: DIALOGS
  144. 96) How do I stop my dialog disappearing when I press the help button?
  145. 97) How do I make my own dialog?
  146. 98) How come the title bars for my dialogs now have "_popup" or "<-popup" con-
  147. catenated onto the widget name?
  148. 99) How can I force a dialog window to display?
  149. 100) How can I control placement of a popup widget?
  150. 101) TOPIC: LANGUAGE BINDINGS
  151. 102)*  Is there a C++ binding for Motif?
  152. 103)  How can I have a C++ member function in a callback?
  153. 104)  Is there a Common Lisp binding for Motif?
  154. 105)*  Is there an Ada binding for Motif?
  155. 106)+  Is there a Poplog binding for Motif?
  156. 107) TOPIC: SPECIFIC PLATFORMS
  157. 108) Is it easy to build Motif for a Sun?
  158. 109)  How do I build Motif 1.2.2 on Solaris 2.1 with Sun C?
  159. 110) What compile errors/warnings might I get in both Sun 3 and Sun 4?
  160. 111) On a Sun 3, what are the mwm startup error messages about?
  161. 112) Are there problems making shared libraries on a Sun?
  162. 113)  The OpenWindows server hangs when I popup a menu with Button 3.
  163. 114) Has anyone made shared libraries on an IBM RS/6000?
  164. 115)  What is the error  "Unaligned access in XmString" under Ultrix?
  165. 116) TOPIC: KEYSYMS
  166. 117)  What is causing the messages "unknown keysym osfDown..."?
  167. 118) What happens if I can't install Motif Keysyms?
  168. 119) Why has OSF introduced Keysyms into Motif 1.1?
  169. 120) TOPIC: ICONS
  170. 121) How can I keep track of changes to iconic/normal window state?
  171. 122) How can I check if my application has come up iconic?
  172. 123) How can I start my application in iconic state?
  173. 124) How can an application iconify itself?
  174. 125) How can an application de-iconify itself?
  175. 126) TOPIC: MISCELLANEOUS
  176. 127)  What is the matter with Frame in Motif 1.2?
  177. 128)  What is IMUG and how do I join it?
  178. 129)  What is the X Professional Organization
  179. 130)  How do I set the title of a top level window?
  180. 131)  Can I use editres with Motif?
  181. 132)  How can I put decorations on transient windows using olwm?
  182. 133) Why does an augment translation appear to act as replace for  some  widg-
  183. ets?
  184. 134) How do you "grey" out a widget so that it cannot be activated?
  185. 135) Why doesn't the Help callback work on some widgets?
  186. 136)  Where can I get a Table widget?
  187. 137)  Has anyone done a bar graph widget?
  188. 138)  Does anyone know of a source code of a graph widget
  189. 139)*  Is there a help system available, such as in Windows 3?
  190. 140) Can I specify a widget in a resource file?
  191. 141) Why are only some of my translations are being installed?
  192. 142)  Where can I get the PanHandler code?
  193. 143) What are these passive grab warnings?
  194. 144)  How do I have more buttons than three in a box?
  195. 145)  How do I create a "busy working cursor"?
  196. 146)  Can I use the hourglass that mwm uses?
  197. 147)  What order should the libraries be linked in?
  198. 148)  How do I use xmkmf for Motif clients?
  199. 149)  How do I make context sensitive help?
  200. 150)  How do I debug a modal interaction?
  201. 151)  Where can I get info on the Motif drag and drop protocol?
  202. 152) TOPIC: ACKNOWLEDGEMENTS
  203.  
  204.  
  205.  
  206.  
  207.  
  208.  
  209.  
  210.  
  211.  
  212.  
  213.  
  214.  
  215.  
  216.  
  217.  
  218.  
  219.  
  220.  
  221.  
  222.  
  223.  
  224.  
  225.  
  226.  
  227.  
  228.  
  229.  
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242. If you have suggestions or corrections for any of these answers or any 
  243. additional information, please send them directly to jan@ise.canberra.edu.au;
  244. the information will be included in the next revision (or possibly the one 
  245. after that; thanks for the many suggestions which haven't been incorporated 
  246. yet).  The answers in this iteration are acknowledged to be partial.
  247.  
  248. This posting is intended to be distributed at approximately the beginning of 
  249. each month.
  250.  
  251. The information contained herein has been gathered from a variety of sources. In
  252. many cases attribution has been lost; if you would like to claim responsibility
  253. for a particular item, please let us know. 
  254.  
  255. Conventions used below: telephone numbers tend to be Bell-system unless 
  256. otherwise noted; prices on items are not included.
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265. -----------------------------------------------------------------------------
  266. Subject:  0)  TOPIC: WHAT ARE OTHER RELEVANT NEWSGROUPS?
  267.  
  268. [Last modified: Feb 93]
  269.  
  270. Answer: This newsgroup is comp.windows.x.motif.  The nearest related group is
  271. comp.windows.x.  It also maintains an FAQ, which deals in all sorts of X, Xlib
  272. and Xt questions. Look there for answers to questions such as "How do I get a
  273. screendump of my application?", "where do I get X11R4", etc.  Other groups
  274. which may have relevant information are comp.windows.x.pex,
  275. comp.windows.x.apps, comp.windows.x.intrinsics, comp.windows.news,
  276. comp.windows.misc and comp.windows.open-look.  The intrinsics and open-look
  277. groups also have an FAQ.
  278.  
  279. The newsgroup news.answers contains *lots* of FAQs (including this one).  Look
  280. there for oodles of info on everything.
  281.  
  282. -----------------------------------------------------------------------------
  283. Subject:  1) TOPIC: FTP ARCHIVES
  284.  
  285. -----------------------------------------------------------------------------
  286. Subject:  2)*  Is the FAQ list available for FTP anywhere?
  287.  
  288. [Last modified: May 93]
  289.  
  290. Answer: A number of FAQ's (including this one) are available for anonymous ftp
  291. at rtfm.mit.edu, 18.70.0.226 (the IP may change soon) under the directory
  292. pub/usenet.  (Motif is under pub/usenet/comp.windows.x.motif and also under
  293. pub/usenet/comp/windows/x/motif) There is also a mail server called mail-
  294. server@pit-manager.mit.edu.  To retrieve a file send mail to the server with a
  295. subject or body similar to
  296.  
  297.         send usenet/comp.windows.x.motif/Motif_FAQ_(Part_1_of_5).Z
  298.  
  299. This service is looked after by Jonathan Kamens (jik@pit-manager.mit.edu).
  300.  
  301. It has also been placed in contrib/Motif-FAQ at export.lcs.mit.edu.
  302.  
  303. The FAQ is also available from csc.canberra.edu.au (137.92.1.1) by anonymous
  304. ftp.  It is in the file /pub/motif/Motif-FAQ
  305.  
  306. This files are also accessible from WAIS (Wide Area Information System) under
  307. UC-Motif-FAQ, allowing keyword-based searches of the FAQ.
  308.  
  309. -----------------------------------------------------------------------------
  310. Subject:  3)  Is this newsgroup accessible via email?
  311.  
  312. [Last modified: April 93]
  313.  
  314. Answer: An email link is maintained by Brian Dealy.  To join, send mail to
  315. motif-request@lobo.gsfc.nasa.gov.
  316.  
  317. -----------------------------------------------------------------------------
  318. Subject:  4) Is this newsgroup archived?
  319.  
  320. [Last modified: November 1992]
  321.  
  322. Answer: The newsgroup files from August 1991 are available from
  323. csc.canberra.edu.au (137.92.1.1) by anonymous ftp.  They are in the directory
  324. /pub/motif/comp.windows.x.motif.
  325.  
  326. These files are also accessible from WAIS (Wide Area Information System) under
  327. comp.windows.x.motif, allowing keyword-based searches of the newsgroup
  328. articles (this time on machine services.canberra.edu.au (137.92.1.12)).
  329.  
  330. -----------------------------------------------------------------------------
  331. Subject:  5) Is the mail list motif-talk archived?
  332.  
  333. Answer: If you have purchased support from OSF then you have access to their
  334. archive server for motif-talk.
  335.  
  336. -----------------------------------------------------------------------------
  337. Subject:  6) TOPIC: OSF AND MOTIF
  338.  
  339. -----------------------------------------------------------------------------
  340. Subject:  7)  What versions of Motif are there?
  341. [Last modified: March 93]
  342.  
  343. Answer: Motif 1.0 is based on the R3 toolkit.  There are patch releases to
  344. 1.0: 1.0.1, 1.0.A, 1.0.2 and 1.0.3, 1.0.4, 1.0.5. 1.0.A was a fairly major
  345. patch, as it involved a complete re-engineering of UIL and Mrm.  Almost
  346. everyone who has 1.0.x has either 1.0.A or 1.0.3.
  347.  
  348. Motif 1.1 is based on the R4 toolkit.  The intial version was Motif 1.1.0.
  349. Motif 1.1.1 has been released as a patch to licensees with Full Support or
  350. Technical Update service.  Motif 1.1.2 is a patch release which contains the
  351. necessary changes to fix over 80 bugs reported against Motif. It is available
  352. to support contract holders (including both full support and update service).
  353. The 1.1.3 release fixed a further 150 bugs and was available from August 1991
  354. to support contract holders (including both full support and update service).
  355. 1.1.4 offers X11R5 support, but is not an X11R5 product.  1.1.5 was released
  356. in June 92 to licensees who hold a Motif Full Support or Update Support
  357. contract
  358.  
  359. Motif 1.2.0 was released in April 1992 and is based on the X11R5 toolkit.  It
  360. offers increased compatibility with international standards,  PC-style
  361. behavior and binary compatibility with OSF/Motif 1.1 applications.  New
  362. features include drag-and-drop, tear- off menus, toolkit enhancements and new
  363. documentation.  toolkit.  The code is totally ANSI C.  OSF distributes a 10
  364. pages sheet entitled "OSF/Motif R1.1 to R1.2: detailed overview of changes",
  365. which is available from OSF Motif direct channels.  (617-621-7300 or email
  366. direct@osf.org)
  367.  
  368. Motif 1.2.1 was released September 92.  Due to an optimisation from 1.2.0 to
  369. 1.2.1 object code compiled under 1.2.1 (that is, using 1.2.1 header files)
  370. will not link with 1.2.0 libraries (and, very probably, clients that use
  371. shared libraries and are linked against 1.2.1 won't startup against 1.2).
  372.  
  373. Motif 1.2.2 was released March 93.  This release contains over 250 bug fixes,
  374. improved text, drag-and-drop features and has less than one reported defect
  375. per 1000 lines of code.
  376.  
  377. From dbrooks@osf.org: "Motif 2.0 will ship well before the sun burns out,
  378. unless we decide to change the name first, and will contain a free plastic
  379. spaceman in every box."
  380.  
  381. -----------------------------------------------------------------------------
  382. Subject:  8)*  Where can I get Motif?
  383.  
  384. [Last modified: June 93]
  385.  
  386. Answer:
  387.     Various hardware vendors produce developer's toolkits of binaries, header
  388. files, and documentation; check your hardware vendor, particularly if that
  389. vendor is an OSF member. Systems known to be shipping now: HP (sans UIL),
  390. Apollo (sans UIL), SCO, ICS, Mips (RISCwindows=X11R3 + full Motif), IBM, Data
  391. General for AViioNs (includes UIL), Bull (?), Concurrent Computer Corporation
  392. 5000, 6000, 8000 series machines, Convex, Sequent.
  393.  
  394.     In addition, independent binary vendors produce Motif toolkits . ICS makes
  395. several binary kits, notably for Sun, DEC, Apple; Quest (408-496-1900) sells
  396. kits for Suns, as well; IXI (+44 223 236 555) offers kits for Sun3 (SunOS 3.5
  397. or later, and Sun4 (SunOS 4.0.1 or later). NSL (+33 (1) 43 36 77 50;
  398. requests@nsl.fr) offers kits for the Sun 3 and Sun 4.  [An FAQ is for
  399. "personal opinions" on these toolkits.  I don't think it is appropriate to
  400. give such opinions through this particular posting, so I haven't included
  401. any.] In Australia, Information Technology Consultants Pty Ltd has Motif 1.1.2
  402. for Sun Sparc 4.1 ( phone on (02) 360 6999, fax on (02) 360 6695 or e-mail to
  403. motif@itcsyd.itc.oz.au) SILOGIC (+33 61.57.95.95), 78 chemin des Sept Deniers
  404. - 31200 TOULOUSE FRANCE sells Motif 1.1 and 1.2 on Sun4 machines. They also
  405. provide customers with Motif maintenance and support, and do consulting on the
  406. X window System at large, including software development.
  407.  
  408.  
  409. Metro Link is now selling Motif 1.2.2 for Linux at the introductory price of
  410. $199.00 (US) complete.  Regular pricing will be $199.00 for Runtime and
  411. $299.00 for Development (which includes Runtime.)  BTW, we include a shared
  412. library version of libXm.
  413.  
  414. For more information please contact sales@metrolink.com or call
  415. +1.305.970.7353. (Fax: +1.305.970.7351  Email: pax@metrolink.com)
  416.  
  417.  
  418.   The kits include varied levels of bug-fixing and support for shared
  419. libraries.  BIM (Fax : +32(2)759.47.95) offer Motif 1.1 for Sun-3, Sun-4,
  420. Sun-386i. Includes shared libraries.  Metrolink Inc. (+1-305-566-9586,
  421. sales@metrolink.com; in Europe contact ADNT, (33 1) 3956 5333) ships an
  422. implementation of X11R4 and Motif 1.1 for several 386 systems.
  423.  
  424.     An OSF/Motif source license must be obtained from OSF before source can be
  425. obtained from the Open Software Foundation. Call the Direct Channel Desk at
  426. OSF at 617-621-7300 or email direct@osf.org for ordering information.  In
  427. addition to the full Motif source, "option C" allows you to purchase source
  428. for the window manager mwm to run on X terminals.
  429.  
  430.  
  431. -----------------------------------------------------------------------------
  432. Subject:  9) Is there a list of Motif bugs?
  433.  
  434. Answer: With each patch release of Motif shipped, there is a list of known
  435. bugs provided.  The filename on the tape is "./OPENBUGS".  There is also a
  436. list of all the issues closed/resolved in that patch.  That is found as part
  437. of the "./README-1.1.n" (where n is the patch number) file.
  438.  
  439. These are the only OSF published lists.
  440.  
  441. No-one else seems to publish a list.
  442.  
  443.  
  444. -----------------------------------------------------------------------------
  445. Subject: 10) Where can I get public domain Motif source?
  446.  
  447. Answer: You cannot.  Motif source is not publically available.
  448.  
  449.  
  450. -----------------------------------------------------------------------------
  451. Subject: 11)  Are the Motif examples publically available?
  452.  
  453. [Last modified: March 93]
  454.  
  455. Answer: OSF has produced a list of which of the example programs can be
  456. distributed. Call OSF Direct for a copy of it.  Most of the example programs
  457. have been freed from distribution limitations so should be available.
  458.  
  459. In addition to these, many programs on export.lcs.mit.edu in the contrib
  460. directory use Motif.  Source code posted to comp.sources.x often uses Motif.
  461. The examples from Dan Heller's book are on export in
  462. /contrib/OReilly/motif/examples.tar.Z.  The examples from Doug Young's book
  463. are on export in /contrib/young.motif.Z The examples from Thomas Berlages's
  464. book are on export in /contrib/berlage.motif.Z The examples from Donald L.
  465. McMinds's book are on export in /contrib/mastering.motif.tar.Z The examples
  466. from Jan Newmarch's book are export in /contrib/newmarch.tar.Z The examples
  467. from Jerry Smith's book are on export in contrib/smith.motif.tar.Z
  468.  
  469.  
  470.  
  471. -----------------------------------------------------------------------------
  472. Subject: 12)  Has anyone done a public domain Motif lookalike?
  473.  
  474. [Last modified: March 93]
  475.  
  476. Answer: Not yet.  The specification is available (AES), and the validation
  477. suite can be bought, but no-one has taken up the challenge.  There are some
  478. commercial lookalikes (Looking Glass and Neuron Data), but no workalikes.
  479.  
  480. Applications that follow the Style Guide might be certified Motif-compliant
  481. through the checklist process, even though they're not using OSF/Motif
  482. binaries.
  483.  
  484. Tcl/Tk is available for ftp from allspice.berkeley.edu, and although
  485. implemented without Xt, has a "strict Motif" mode.
  486.  
  487. Strom Sytems (18666 Redmond Way o-2118, Redmond, WA 98052-6725) have a Simple
  488. Toolkit for X-Windows (sic) that appears to follow the Style Guide even though
  489. it doesn't quite look like Motif.
  490.  
  491. MOOLIT is a USL product that can be runtime switched between the Sun Open Look
  492. and Motif appearance.  It is based on  OLIT 4i.
  493.  
  494. Interviews (also known as Fresco) is a C++ based product with appearance
  495. similar to Motif.  A ftp-able version is on interviews.stanford.edu.  A
  496. commercial version is available as InterViews Plus.
  497.  
  498.  
  499. -----------------------------------------------------------------------------
  500. Subject: 13) Does anyone from OSF pay attention to our questions/suggestions?
  501.  
  502. Answer: Yes, and they quite often post answers too. But they may not respond
  503. to *your* problem because they have other things to do as well.  This
  504. newsgroup is not run by OSF, and has no formal connection with OSF.  OSF is a
  505. member-driven company.  The membership (and anyone can be a member) provides
  506. the primary input for future development of Motif.
  507.  
  508. -----------------------------------------------------------------------------
  509. Subject: 14) Does OSF have an application compliance validation service?
  510.  
  511. Answer: They have a checklist and a certification process which you can
  512. request from them.  Ask for the Level One Certification Checklist.  The
  513. process is one of self-certification.  It tests only the appearance and
  514. behavior of the application against Motif style.  The product will also be put
  515. in the OSF reference listing.  There's a one-time fee of $250.  According to
  516. the master license agreement, you can't use any OSF identifying mark unless
  517. you have done a certification.
  518.  
  519.  
  520. -----------------------------------------------------------------------------
  521. Subject: 15) What is the motif-talk mailing list?
  522.  
  523. Answer: The motif-talk mailing list is only for those who have purchased a
  524. Motif source code license. You can be placed on this list by emailing to
  525. motif-talk-request@osf.org, citing your Company name and source license
  526. number.
  527.  
  528.  
  529.  
  530. -----------------------------------------------------------------------------
  531. Subject: 16) What MIT patches do I use, and when do I use fix-osf?
  532.  
  533. Answer: The Motif 1.1.0 tape contains MIT patches 1-14. Apply these and any
  534. others you can get.  If your MIT patch level only goes up to fix-16, you also
  535. need to apply fix-osf.  Fix-osf was an emergency patch for a problem that
  536. existed when the Motif 1.1 tape was cut, The MIT fix-17 completely superseded
  537. osf-fix, so if you have applied fix-17 do not apply fix-osf.  The 1.1.1 tape
  538. contains MIT fixes 15-18, as well as an OSF-developed fix that deals with a
  539. subtle bug in the Selection mechanism of the Intrinsics.  Most people will
  540. have fix-15 to 18 by now; if you don't have them:
  541.  
  542.         Back out fix-osf if you have applied it
  543.         Apply fix-15 to 18
  544.         Apply fix-osf-1.1.1
  545.  
  546. The Selection fix was submitted to MIT, who came up with a different fix.  It
  547. will not be made into an R4 fix but should be in R5. The MIT fix was posted to
  548. motif-talk.
  549.  
  550.  
  551. -----------------------------------------------------------------------------
  552. Subject: 17)* How does Motif work with X11R5?
  553.  
  554. Answer: Motif 1.1.X is only intended to be built with X11R4.  Motif 1.2.X is
  555. for X11R5.  however, Motif 1.1.4 has been set to also work with X11R5.
  556.  
  557. For Motif 1.1.1, 1.1.2 and 1.1.3 you will need to compile Xlib and Xt with a
  558. MOTIFBC flag set to YES (page 8, section 3.3 of the R5 release notes), or
  559. you'll also have a link problem (LowerCase) and a fatal run time problem
  560. (XContext manager).  If your applications come up with "Unknown keysym name:
  561. osfActivate" errors, check the variable ProjectRoot. The name
  562. /$PROJECTROOT/lib/XKeysymDB will have been wired into your Xlib.
  563.  
  564. In Motif 1.1.0, XtCallCallback uses NULL as the first argument instead of a
  565. widget ID. This was ok under R4, but must be changed in the source for R5. It
  566. was changed by OSF from Motif 1.1.1 onward.
  567.  
  568. Mrm won't work at all (can't link since it uses an X private variable that has
  569. disappeared in R5).  Thre is an MIT patch that may fix this??  [I confess
  570. ignorance of Mrm and UIL].
  571.  
  572. -----------------------------------------------------------------------------
  573. Subject: 18)  How can I find which version of Motif I have?
  574.  
  575. [Last modified: March 93]
  576.  
  577. Answer: The macro XmVERSION gives you the version number.  The macro
  578. XmREVISION gives you the major revision number.  The macro XmVersion combines
  579. these e.g. a value of 1002 is Motif 1.2.
  580.  
  581. To find the minor revision number is not easy.  From Motif 1.1.3 onwards, try
  582. this:
  583.  
  584.    'strings `which mwm` | grep OSF'.
  585.  
  586. to get the full version number e.g. 1.1.3.
  587.  
  588. In Motif 1.2, the macro XmUPDATE_LEVEL was added to give the minor revision
  589. number.
  590.  
  591.  
  592. -----------------------------------------------------------------------------
  593. Subject: 19) TOPIC: LITERATURE
  594.  
  595. -----------------------------------------------------------------------------
  596. Subject: 20)  What books should I read or do I need to program using Motif?
  597.  
  598. [Last modified: April 93]
  599.  
  600. Answer: Ken Lee of the DEC Western Software Laboratory (klee@wsl.dec.com)
  601. regularly posts to comp.windows.x and ba.windows.x a list of reference books
  602. and articles on X and X programming.  In FAQ comp.windows.x an extract of his
  603. list appears. Specifically for Motif programming, though:
  604.  
  605. OSF/Motif Programmers Guide, Prentice-Hall ISBN 13-640525-8 (Motif 1.0), ISBN
  606. 0-13-640681-5 (Motif 1.1), ISBN 0-13-643107-0 (Motif 1.2) (NB: This makes use
  607. of the demo programs that you get with a Motif source license.  The programs
  608. are not included and may or may not be available on your system.)
  609.  
  610. OSF/Motif Programmers Reference Manual, Prentice-Hall ISBN 13-640517-17 (Motif
  611. 1.0),
  612.  ISBN 0-13-640616-5 (Motif 1.1), ISBN 0-13-643115-1 (Motif 1.2) You will need
  613. this for the system calls.
  614.  
  615. OSF/Motif Style Guide, Prentice-Hall 13-640491-X (Motif 1.0), ISBN 0-13-
  616. 640673-4 (Motif 1.1), ISBN 13-643123-2 (Motif 1.2) You will need this to get
  617. some idea of how to write programs with the correct `look and feel'.
  618.  
  619. You should read at least one of the the non-OSF books on Motif:
  620.  
  621. Young, Doug. "The X Window System: Applications and Programming with Xt (Motif
  622. Version)," Prentice Hall, 1989 (ISBN 0-13-497074-8). The excellent tutorial "X
  623. Window Systems Programming and Applications with Xt," (ISBN 0-13-972167-3)
  624. updated for Motif. [The examples from the Motif version are available on
  625. export in ~ftp/contrib/young.motif.tar.Z]
  626.  
  627. Marshall Brain at brain@adm.csc.ncsu.edu posted a set of simple and useful
  628. Motif tutorials.
  629.  
  630. Berlage, Thomas Berlage, OSF/Motif: Concepts and Programming, Addison-Wesley,
  631. UK, 1991. ISBN 0-201-55792-4.
  632.  
  633. Johnson, Eric F. and Kevin Reichard, Power Programming Motif, MIS: Press,
  634. Portland, OR, 1991. ISBN 1-55828-059-6. Book with disk, ISBN 1-55828-061-8.
  635.  
  636. Heller, Dan, The Motif Programming Manual, Volume 6 of the O'Reilly series on
  637. X.  This is the most complete volume on Motif programming available.  ISBN 0-
  638. 937175-70-6 (Motif 1.1) [the Motif 1.2 version is expected about April 93].
  639.  
  640. Barkakati, Nabajyoti, X Window System Programming, SAMS. ISBN 0-672-22750-9.
  641. This contains a section on Motif.
  642.  
  643. Smith, Jerry, Designing X Clients with Xt/Motif, ISBN 1-55860-255-0 Morgan
  644. Kaufmann Publishers This adopts a higher-level approach to many of the objects
  645. that commonly occur in Motif but are not in the Motif API.
  646.  
  647.  
  648. Newmarch, Jan, The X Window System and Motif - A Fast Track Approach.
  649. Addison-Wesley, ISBN 0-201-53931-4.
  650.  
  651. You will also need books and references on Xt such as:
  652.  
  653. Asente, Paul J., and Swick, Ralph R., "X Window System Toolkit, The Complete
  654. Programmer's Guide and Specification", Digital Press, 1990.  The bible on Xt.
  655. A treasury of information, excellent and invaluable.  Distributed by Digital
  656. Press, ISBN 1-55558-051-3, order number EY-E757E-DP; and by Prentice- Hall,
  657. ISBN 0-13-972191-6.
  658.  
  659. Nye, Adrian, and Tim O'Reilly, "X Toolkit Programming Manual, Volume 4,"
  660. O'Reilly and Associates, 1989. The folks at O'Reilly give their comprehensive
  661. treatment to programming with the MIT Intrinsics; R4 versions are now
  662. available, as is a Motif 1.1 version (Volume 4M).
  663.  
  664.  
  665. Flanagan, David, ed.,  "X Toolkit Reference Manual, Volume 5," O'Reilly and
  666. Associates, 1992a, Third Edition. A professional reference manual for the MIT
  667. X11R4 and X11R5 Xt.
  668.  
  669. Books and reference manuals on Xlib may also be useful.
  670.  
  671. If you want to learn about UIL, look in the Motif Programmers's Guide.  This
  672. seems to be the only information.
  673.  
  674.  
  675. -----------------------------------------------------------------------------
  676. Subject: 21) TOPIC: MWM
  677.  
  678. -----------------------------------------------------------------------------
  679. Subject: 22) What is the difference between Motif and mwm?
  680.  
  681. Answer: mwm is a window manager. Motif itself is made up of four parts: a
  682. User-Interface Guideline, an API toolkit of `C' routines which helps in the
  683. building of applications which conform to the Guideline, the window manager
  684. mwm, and a language UIL which is designed to ease user interface development.
  685. In general mwm will run an application built with any X-windows API, and in
  686. general an application built using the Motif toolkit will run under any window
  687. manager.
  688.  
  689.  
  690. -----------------------------------------------------------------------------
  691. Subject: 23) Does anyone have an alternative set of 3-D defaults for a
  692. monochrome screen?
  693.  
  694. Answer: This is obviously a matter of taste. Some alternatives suggested
  695. include
  696.  
  697. !Benjamin Schreiber, bs@osf.osf.org, bs@cs.brandeis.edu
  698. Mwm*foreground:                 black           ! Actually, when a window is
  699. Mwm*background:                 white           ! deactivated, the background
  700. Mwm*backgroundPixmap:           50_foreground   ! becomes white, insted of
  701. Mwm*topShadowPixmap:            white           ! 50% foreground (grey)
  702.  
  703. Mwm*activeForeground:           black
  704. Mwm*activeBackground:           white
  705. Mwm*activeBackgroundPixmap:     50_foreground
  706. Mwm*activeTopShadowPixmap:      white
  707.  
  708. Mwm*menu*backgroundPixmap:      background
  709. Mwm*menu*topShadowPixmap:       50_foreground
  710.  
  711. Mwm*title*foreground:                   black
  712. Mwm*title*background:                   white
  713. Mwm*title*backgroundPixmap:             white
  714. Mwm*title*topShadowPixmap:              50_foreground
  715. Mwm*title*activeForeground:             white
  716. Mwm*title*activeBackground:             black
  717. Mwm*title*activeBackgroundPixmap:       black
  718. Mwm*title*activeBottomShadowPixmap:     50_foreground
  719.  
  720. Mwm*feedback*backgroundPixmap:          white
  721.  
  722. or
  723.  
  724. ! From: tsang@isi.com (Kam C. Tsang)
  725. Mwm*background:                      White
  726. Mwm*activeBackground:                White
  727. Mwm*activeBackgroundPixmap:          25_foreground
  728. Mwm*foreground:                      Black
  729. Mwm*activeForeground:                Black
  730. Mwm*menu*background:                 white
  731. Mwm*menu*foreground:                 black
  732. xterm*Foreground:                    black
  733. xterm*Background:                    white
  734.  
  735.  
  736. or
  737.  
  738. ! From: ucsd.edu!usc!snorkelwacker!paperboy!yee  (Michael K. Yee)
  739. Mwm*cleanText:                          True
  740.  
  741. Mwm*activeBackground:           white
  742. Mwm*activeForeground:           black
  743. Mwm*background:                 white
  744. Mwm*foreground:                 black
  745.  
  746. Mwm*client*activeBackgroundPixmap:      50_foreground
  747. Mwm*client*activeTopShadowPixmap:       foreground
  748. Mwm*client*activeBottomShadowPixmap:    background
  749.  
  750. !Mwm*client*background:                 white
  751. !Mwm*client*foreground:                 black
  752. Mwm*client*backgroundPixmap:            75_foreground
  753. Mwm*client*topShadowPixmap:             foreground
  754. Mwm*client*bottomShadowPixmap:          background
  755.  
  756. !Mwm*feedback*background:               white
  757. !Mwm*feedback*foreground:               black
  758. Mwm*feedback*backgroundPixmap:          50_foreground
  759. !Mwm*feedback*topShadowPixmap:          25_foreground
  760. !Mwm*feedback*bottomShadowPixmap:       background
  761.  
  762. !Mwm*menu*background:                   white
  763. !Mwm*menu*foreground:                   black
  764. Mwm*menu*backgroundPixmap:              foreground
  765. !Mwm*menu*topShadowPixmap:              foreground
  766. !Mwm*menu*bottomShadowPixmap:           background
  767.  
  768. !Mwm*icon*background:                   white
  769. !Mwm*icon*foreground:                   black
  770. Mwm*icon*activeBackgroundPixmap:        50_foreground
  771. Mwm*icon*activeBottomShadowPixmap:      foreground
  772. Mwm*icon*backgroundPixmap:              75_foreground
  773.  
  774.  
  775.  
  776. -----------------------------------------------------------------------------
  777. Subject: 24)  How can I modify the Motif window manager decorations?
  778.  
  779. Answer: In resource files, use the window manager's client resource (which is
  780. the application) and the resource clientDecoration:
  781.  
  782. Mwm*XClock.clientDecoration:   none
  783.  
  784. turns off all clock decorations.  See the mwm(1) entry for other
  785. possibilities.
  786.  
  787. Programmatically, set the VendorShell resource XmNmwmDecorations to
  788. appropriate values: MWM_DECOR_NONE (or a bitwise or of values).
  789.  
  790. -----------------------------------------------------------------------------
  791. Subject: 25)  How can I turn off the Motif window manager functions from the
  792. system menu?
  793. [Last modified: October 92]
  794.  
  795. Answer: The user of an application can control functions in the system menu
  796. for an application using the mwm resource clientFunctions:
  797.  
  798.         mwm.application_name.clientFunctions: -resize -close
  799.  
  800. Note that mwm will have to be restarted after putting this in their resource
  801. database.
  802.  
  803.  
  804. Answer: The writer of an application can only remove items.  Be warned that
  805. your users will probably gnash their teeth, swear furiously at your product
  806. and stop using it if they discover that you have done this.  (Especially if
  807. you have removed the Close button, your application has hung and it has taken
  808. up all of memory and swap so it can't be killed.) Much better is to catch the
  809. action gracefully as in the next question.
  810.  
  811.         #include <Xm/MwmUtil.h>
  812.  
  813.         XtVaGetValues(shell, XmNmwmFunctions, &int_val, NULL);
  814.         int_val &= ~(MWM_FUNC_CLOSE | MWM_FUNC_ALL);
  815.         XtVaSetValues(shell, XmNmwmFunctions, int_val, NULL);
  816.  
  817.  
  818.  
  819. -----------------------------------------------------------------------------
  820. Subject: 26)  How can tell I if the user has selected the "Close" item on the
  821. system menu attached to the top-level shell?  I need to do some clean up
  822. before exiting.
  823.  
  824. [Last modified: May 93]
  825.  
  826. Answer:          This works with R4 Intrinsics
  827.  
  828.         #include <Xm/Protocols.h>
  829.  
  830.         void FinalCleanupCB(w, client_data, call_data)
  831.         Widget   w;
  832.         caddr_t  client_data, call_data;
  833.         {
  834.                 /* tidy up stuff here */
  835.                 ...
  836.                 /* exit if you want to */
  837.                 exit (0);
  838.         }
  839.  
  840.         main()
  841.         {
  842.                 Atom wm_delete_window;
  843.  
  844.                 ...
  845.                 XtRealizeWidget(toplevel);
  846.                 ...
  847.                 wm_delete_window =
  848.                         XmInternAtom(XtDisplay(toplevel),
  849.                                 "WM_DELETE_WINDOW", False);
  850.                 XmAddWMProtocolCallback(toplevel, wm_delete_window,
  851.                         FinalCleanupCB, NULL);
  852.                 XtMainLoop();
  853.         }
  854.  
  855. This will still kill the application.  To turn this behaviour off so that the
  856. application is not killed, set the shell resource XmNdeleteResponse to
  857. XmDO_NOTHING.  This means that users cannot kill your application via the
  858. system menu, and may be a bad thing.
  859.  
  860. If you are running R3, Bob Hays (bobhays@spss.com) has suggested this:
  861. "Trapping on the delete window atom does not work as I cannot force my action
  862. routine to the top of the action list for the activity desired, so the window
  863. manager kills my window anyway BEFORE I can do anything about it.  And, to
  864. make matters worse, the window manager (Motif in this case) tacks its atoms
  865. and handlers onto the window at some unknown point down the line after the
  866. creation of the shell widget as far as I can tell.  So....
  867.  
  868. I have a procedure as an action routine for ClientMessage.  Then, if I get a
  869. property change event on the window manager protocols, I then tack on
  870. WM_SAVE_YOURSELF.  If I get this request, I clean up (it seems to happen on
  871. WM_DELETE_WINDOW, BTW, if you remove WM_DELETE_WINDOW from the WM protocols
  872. atom) and exit.  Works great and is less filling overall:-)."
  873.  
  874.  
  875. -----------------------------------------------------------------------------
  876. Subject: 27)  Is there an mwm virtual desktop manager?
  877.  
  878. Answer: Peter E. Wagner (pew@cs.brown.edu): Imagine that your "desktop"
  879. extends beyond the view provided by your monitor.  A virtual window manager
  880. gives you access to the space beyond your viewport (i.e. your screen) by
  881. allowing you to move the viewport to other areas of the extended desktop.
  882.  
  883. The first one is Solbourne's swm, which spawned vtwm/tvtwm/olvwm.
  884.  
  885. David B. Lewis created one.  suresh@unipalm.co.uk has further developed it
  886. into the UniPalm product DOORS, which is only available as a source code
  887. extension to the MOTIF window manager.  The price of the source and unlimited
  888. right to distribute binaries is 10,000 pounds Sterling.  Alternately, source
  889. and right to use within one company is 2,000 pounds Sterling.  Contact Peter
  890. Dawe
  891.  
  892. Unipalm Limited                         Voice: +44 (0) 223 420002
  893. 216 The Science Park                    Fax:   +44 (0) 223 426868
  894. CAMBRIDGE
  895. CB4 4WA
  896.  
  897.  
  898.  
  899. An enhancement request for such an object has been filed with OSF.
  900.  
  901. -----------------------------------------------------------------------------
  902. Subject: 28)  Why does mwm 1.2 crash on startup?
  903.  
  904. [Last modified: March 93]
  905.  
  906. Answer: From David Brooks: The commonest cause of early mwm demise is as
  907. follows:
  908.  
  909. - You, or someone, built Xlib in the default way using the Xsi
  910.   internationalization functions.
  911.  
  912. - Your Xlib wasn't installed completely (or at all).
  913.  
  914. - Early on, mwm calls the function XmbTextListToTextProperty, which calls
  915.   _XConvertMBToCT, which looks for the Xsi locale database, finds it
  916.   missing, ignores this fact and tries to dereference zero.
  917.  
  918. The workaround is to find the database *somewhere*, and point the environment
  919. variable XNLSPATH at it.  For example, in my personal X source tree:
  920.  
  921.         setenv XNLSPATH /home/X11r5src/mit/lib/nls/Xsi
  922.  
  923.  
  924. -----------------------------------------------------------------------------
  925. END OF PART ONE
  926. --
  927. +----------------------+---+
  928.   Jan Newmarch, Information Science and Engineering,
  929.   University of Canberra, PO Box 1, Belconnen, Act 2616
  930.   Australia. Tel: (Aust) 6-2012422. Fax: (Aust) 6-2015041
  931.